/**
 * levels.js : defines all the game's levels.
 * 
 * All codes used to create a game level
 * +------+--------------------+-------------------------------------
 * | CODE | JS CONSTANT        | COMMENT
 * +------+--------------------+-------------------------------------
 * | 1    | WALL               | A wall part
 * | 2    | MY_MIAOU           | The good yellow cat
 * | 3    | BLACK_CAT          | The a bad black cat
 * | 4    | BLACK_WHITE_CAT    | The a bad black & white cat
 * | 5    | YELLOW_FISH        | The yellow fish
 * | 6    | BLUE_FISH          | The blue fish
 */

var levels=new Array(new Array(),new Array());

/* Level 0 */    
levels[0][0] =new Array( 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1) ;
levels[0][1] =new Array( 1,2,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'8|1',1) ;
levels[0][2] =new Array( 1,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,5,0,0,1,1,0,0,1,0,0,1,0,1) ;
levels[0][3] =new Array( 1,0,1,1,0,0,1,1,0,0,0,0,0,0,1,0,1,1,0,1,0,4,1,0,1,0,0,1,0,1) ;
levels[0][4] =new Array( 1,0,1,0,1,1,0,1,0,1,1,1,0,1,0,0,0,1,0,1,5,0,1,0,1,0,0,1,0,1) ;
levels[0][5] =new Array( 1,0,1,0,0,0,0,1,0,0,1,0,0,1,1,1,1,1,0,1,5,6,1,0,1,0,0,1,0,1) ;
levels[0][6] =new Array( 1,4,1,0,0,5,0,1,0,0,1,0,0,1,0,0,0,1,0,'21|1',0,0,1,0,1,0,0,1,0,1) ;
levels[0][7] =new Array( 1,0,1,0,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,1,5,6,1,0,1,0,0,1,0,1) ;
levels[0][8] =new Array( 1,4,1,1,0,0,1,1,0,1,1,1,0,1,1,0,1,1,0,0,1,1,0,0,1,1,1,1,0,20) ;
levels[0][9] =new Array( 1,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,1) ;
levels[0][10]=new Array( 1,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,0,1) ;
levels[0][11]=new Array( 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1) ;
levels[0][12]=new Array( 0,99,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) ;

/* Level 1 */    
levels[1][0]=new Array( 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 ,0,0,0,0,0,0) ;
levels[1][1]=new Array( 1,'8|1',0,1,0,2,1,0,0,0,0,0,0,1,'8|2',1,0,0,7,1 ,0,0,0,0,0,0) ;
levels[1][2]=new Array( 1,0,1,0,1,4,1,0,0,0,0,0,0,1,0,1,0,0,0,1 ,0,0,0,0,0,0) ;
levels[1][3]=new Array( 1,5,1,0,0,4,0,0,3,0,0,0,0,0,0,1,0,0,0,1 ,0,0,0,0,0,0) ;
levels[1][4]=new Array( 1,5,1,1,1,4,1,0,0,0,0,0,0,1,0,0,0,0,0,1 ,0,0,0,0,0,0) ;
levels[1][5]=new Array( 1,5,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1 ,1,1,1,1,1,1) ;
levels[1][6]=new Array( 1,5,1,0,0,5,0,0,0,0,0,0,5,0,0,1,0,0,0,'21|1',6,5,6,5,6,1) ;
levels[1][7]=new Array( 1,5,1,1,1,5,1,0,0,0,0,0,0,1,0,0,0,6,0,1 ,6,5,6,5,6,1) ;
levels[1][8]=new Array( 1,5,0,4,0,5,1,0,0,0,0,0,0,1,0,0,0,0,0,1 ,1,1,1,1,1,1) ;
levels[1][9]=new Array( 1,6,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1 ,0,0,0,0,0,0) ;
levels[1][10]=new Array( 1,1,1,1,1,1,1,20,1,1,1,1,1,1,'21|2',1,1,1,1,1,0,0,0,0,0,0) ;
levels[1][11]=new Array( 0,99,0,0,0,0,0,0,10,0,0,0,1,0,6,0,0,1,0,0,0,0,0,0,0,0) ;
levels[1][12]=new Array( 0,0,0,0,0,0,0,0,0,0,0,0,1,0,5,6,5,1,0,0,0,0,0,0,0,0) ;
levels[1][13]=new Array( 0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0) ;

/* level 2 */
levels[2][0]=new Array( 1,1,1,1,1,1,1,1,1,1,1,1,20,1,1,1,1,1,1,1) ;
levels[2][1]=new Array( 1,5,0,1,0,2,1,0,4,0,0,0,0,1,0,1,0,0,7,1) ;
levels[2][2]=new Array( 1,5,1,0,1,4,1,0,0,0,5,5,0,1,0,1,0,0,0,1) ;
levels[2][3]=new Array( 1,0,1,0,0,4,0,0,0,0,0,0,0,0,0,1,0,6,0,1) ;
levels[2][4]=new Array( 1,0,1,1,1,4,1,0,0,0,0,0,0,1,0,5,0,0,0,1) ;
levels[2][5]=new Array( 1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1) ;
levels[2][6]=new Array( 1,0,1,0,0,0,0,0,0,4,5,0,0,0,0,1,0,0,0,1) ;
levels[2][7]=new Array( 1,0,1,1,1,0,1,0,0,5,6,0,0,1,0,5,0,0,0,1) ;
levels[2][8]=new Array( 1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1) ;
levels[2][9]=new Array( 1,0,0,0,0,0,1,0,0,0,0,0,7,1,0,0,0,0,4,1) ;
levels[2][10]=new Array( 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1) ;
levels[2][11]=new Array( 1,1,1,1,1,1,1,1,10,0,0,1,1,11,1,1,1,1,1,1) ;
    


